package com.qunar.paydata.platform.common.entity;

import java.io.Serializable;

/**
 * 
 * @author leonyang.liu
 *
 * @param <T>
 */
public class ResultEntity<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2844289445095914983L;
	
	public ResultEntity(int code, String message, T data){
		this.code = code;
		this.message = message;
		this.data = data;
	}
	private T data; //返回数据对象
	
	private int code; //返回编码
	
	private String message; //返回信息

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}


